import React, { memo, useEffect, useState } from "react";
import { GoodsOrderAddressWrapper } from "./style";
import storage from "../../../../utils/storage";
import { Empty } from "antd";
import { Button } from "antd";
export default memo(function Address() {
  const [addressList, setaddressList] = useState([]);

  const getAddressList = async () => {
    const token = storage.get("token");
  };
  useEffect(() => {
    getAddressList();
  }, []);
  return (
    <GoodsOrderAddressWrapper>
      <div className="title">选择收货地址</div>
      {addressList.length > 0 ? (
        1
      ) : (
        <div className="empty">
          <Empty
            description="暂无收货地址,点击图标可刷新收货地址!"
            image={Empty.PRESENTED_IMAGE_SIMPLE}
          />
        </div>
      )}
      <div className="add-address">
        <div>显示全部收货地址</div>
        <div>
          <span className="refresh-address">刷新收货地址</span>
        </div>
      </div>
    </GoodsOrderAddressWrapper>
  );
});
